package Prototype;

/**
 * @author duanzhizhou
 * @date 2024/9/30
 */
public class Resume implements Cloneable{
    
    private int age;
    
    private String address;
    
    private WorkExp exp;
    
    public Resume(int age, String address, WorkExp exp) {
        this.age = age;
        this.address = address;
        this.exp = exp;
    }
    
    public Resume() {
    }
    
    public int getAge() {
        return age;
    }
    
    public void setAge(int age) {
        this.age = age;
    }
    
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    public WorkExp getExp() {
        return exp;
    }
    
    public void setExp(WorkExp exp) {
        this.exp = exp;
    }
    
    @Override
    protected Resume clone() throws CloneNotSupportedException {
        Resume resume = (Resume) super.clone();
        resume.setExp(exp.clone());
        return resume;
    }
}
